import React, {Component} from 'react';
import Info from "./Info/Info";
import Order from "./Order/Order";
import {Link,Route} from "react-router-dom";
import "./Mine.css"

class Mine extends Component {
    render() {
        return (
            <div style={{display: 'flex'}}>

                <div className={"left"}>

                    <Link  to={'/mine/info'}>Info</Link>
                    <Link to={'/mine/Order'}>Orde</Link>
                </div>
                <div className={"right"}>
                    <Route path={'/mine/info'} component={Info}/>
                    <Route path={'/mine/Order'} component={Order}/>
                </div>
            </div>
        );
    }
}

export default Mine;